<?php 

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @category    ChinaWanderer
 * @package     Backend
 * @subpackage  Template
 * @author      Chen Qiao <chen.qiao@evebit.com>
 * @version     $$Id: login.phtml 716 2011-05-11 06:37:38Z ma.rongliang $$
 * @copyright   Copyright (c) 2011 Evebit Inc. China (http://www.evebit.com)
 */
$this->layout()->setLayOut("login");
$googleEmail = $this->googleEmail;
$googlePwd = $this->googlePwd;
$imgPath=$this->baseUrl("media/assets/");
$captchaUrl = $this->resultcaptchaurltoken['url'];
$token = $this->resultcaptchaurltoken['token'];
?>
<!DOCTYPE html>
	<body>
	<div id="container">
		<div class="logo">
			<a href=""><img src="<?php echo $this->baseUrl('/media/assets/logo.png')?>" alt="" /></a>
		</div>
		<div id="box">
		<?php if($this->containuser):?>
		     <div class="notification-global">
              <strong><?php echo $this->containuser->username;?></strong> 
              &nbsp;<?php echo $this->__('You have sufficient permissions, please try login again.') ?>              
             </div>
        <?php endif;?>              
			<form id="gooleLogin" action="<?php echo $this->url(array(), 'backend_login')?>" method="post">
				<input type="hidden" name="gg" value="login" />
				<p class="main">
					<label><?php echo $this->__('Username: ') ?></label>
					<input name="googleEmail" value="<?php if(isset($googleEmail)):?><?php echo $googleEmail;?><?php endif;?>" /> 
					<label><?php echo $this->__('Password: ') ?></label>
					<input type="password" name="googlePwd" value="<?php if(isset($googlePwd)):?><?php echo $googlePwd;?><?php endif;?>">
				</p>
				<?php if($captchaUrl && $token) {?>
					<p class="main" style="padding-top:10px;">
					<label><?php echo $this->__('Checkcode: ') ?></label>
					<input name="checkcode" value="" type="text" />
					<img src="<?php echo $captchaUrl;?>"></img>
					<input type="hidden" value="<?php echo $token;?>" name="token">
					<input type="hidden" value="<?php echo $captchaUrl;?>" name="captchaurl">
					</p>
				<?php }?>
				<p class="space">					
					<input type="submit" value="Login" class="login" name="submit"/><span style="color:red"></span>
				</p>
			</form>			
		</div>
	</div>
	<div id="content-wrapper" class="content-wrapper">
     	<?php echo $this->partial("messages.phtml","blocks") ?>
     </div>
	</body>
</html>